/*
 * @copyright fxsen <br/>
 * @date 2022/3/31 15:27 <br/>
 * @email <a href="mailto:fxsen@foxmail.com">
 * @author fxsen
 */
package com.fxsen.commons.sysmanager.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

/**
 * 字典详情表
 * @author fxsen
 * @date 2022/3/31 15:27
 * @email <a href="mailto:fxsen@foxmail.com">
 */
@ApiModel("字典详情")
@TableName("sys_dictionary_detail")
@TableComment(value = "字典详情表")
@Entity
public class DictionaryDetail extends BaseEntity {
    @ApiModelProperty("父id")
    @TableField(value = "pid")
    @Column(name = "pid", type = MySqlTypeConstant.VARCHAR, comment = "父id",length = 32)
    private String pid;

    @ApiModelProperty("字典id")
    @TableField(value = "dictionary_id")
    @Column(name = "dictionary_id", type = MySqlTypeConstant.VARCHAR, comment = "字典id",length = 32)
    private String dictionaryId;

    @ApiModelProperty("字典显示的名称")
    @TableField(value = "name")
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, comment = "字典显示的名称",length = 100)
    private String name;

    @ApiModelProperty("字典实际的值")
    @TableField(value = "value")
    @Column(name = "value", type = MySqlTypeConstant.VARCHAR, comment = "字典实际的值",length = 100)
    private String value;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getDictionaryId() {
        return dictionaryId;
    }

    public void setDictionaryId(String dictionaryId) {
        this.dictionaryId = dictionaryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
